package com.ymk.service.impl;

import com.ymk.base.mybatis.DaoRouter;
import com.ymk.base.mybatis.Pagination;
import com.ymk.bo.work.WorkContentEntryBO;
import com.ymk.service.IWorkContentEntryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 入职岗位条件表 服务实现类
 * </p>
 *
 * @author 莫参商
 * @since 2023-10-28
 */
@Service
public class WorkContentEntryService implements IWorkContentEntryService {

    @Override
    public WorkContentEntryBO get(Map param) {
    return this.daoRouter.queryForObject("WorkContentEntry.loadWorkContentEntry",param);
    }

    @Override
    public List<WorkContentEntryBO> list(Map param) {
        return this.daoRouter.query("WorkContentEntry.loadWorkContentEntry",param);
    }

    @Override
    public List<WorkContentEntryBO> listForPage(Pagination pagination) {
        return this.daoRouter.query("WorkContentEntry.loadWorkContentEntryForPage",pagination);
    }

    @Override
    public void post(WorkContentEntryBO param) {
        this.daoRouter.insert("AWorkContentEntry.insertWorkContentEntry",param);
    }

    @Override
    public void update(WorkContentEntryBO param) {
        this.daoRouter.update("AWorkContentEntry.updateWorkContentEntry",param);
    }

    @Override
    public void del(WorkContentEntryBO param) {
        this.daoRouter.update("AWorkContentEntry.delWorkContentEntry",param);
    }

    @Autowired
    private DaoRouter daoRouter;

}
